# -*- coding: utf-8 -*-
"""
作者: 肖麒
联系方式：QQ：1505448035
时间: 2025/4/24 15:34
文件作用：
"""
from curl_cffi import requests


class V1Api:
    def __init__(self):
        pass

    def get_v1(self):
        headers = {
            # "Host": "vod.bytedanceapi.com",
            # "authorization": "AWS4-HMAC-SHA256 Credential=AKTPOTQ0MzUwODYzYWFiNDJmYWJlYmM5YzBmM2Y1OTZlNmU/20250816/sdwdmwlll/vod/aws4_request, SignedHeaders=x-amz-date;x-amz-security-token, Signature=5bd4553c254feb0ab06406ea6d11b81c3cf869fe789d40115cca5bfc1743d22c",
            # "date": "Sat, 16 Aug 2025 06:04:08 GMT",
            # "user-agent": "BDFileUpload(1755324248193)",
            # "x-amz-date": "20250816T060408Z",
            # "x-amz-expires": "31536000",
            # "x-amz-security-token": "STS2eyJMVEFjY2Vzc0tleUlEIjoiQUtMVFlqaGxNbUl3WkdJMVlUbGxORFJpTjJGbFpqTTJaVEU1WkdNelpUazJOemsiLCJBY2Nlc3NLZXlJRCI6IkFLVFBPVFEwTXpVd09EWXpZV0ZpTkRKbVlXSmxZbU01WXpCbU0yWTFPVFpsTm1VIiwiU2lnbmVkU2VjcmV0QWNjZXNzS2V5IjoidE40b0xZaXlFb1BJa2VmUUxsbGFlUUd1a0lJWEwwZk9VWVdrbHdTVnk1aXE2cjNCWFAyVWJkVjVuVHRVWHRUSU9KYUtBRGltQnZYOW9TL3pFYXlYd1RIV3FmUjBrWCtUNUc3OFRkN2RhbFE9IiwiRXhwaXJlZFRpbWUiOjE3NTUzMjc4MTAsIlBvbGljeVN0cmluZyI6IntcIlN0YXRlbWVudFwiOlt7XCJFZmZlY3RcIjpcIkFsbG93XCIsXCJBY3Rpb25cIjpbXCJ2b2Q6QXBwbHlVcGxvYWRcIixcInZvZDpBcHBseVVwbG9hZElubmVyXCIsXCJ2b2Q6Q29tbWl0VXBsb2FkXCIsXCJ2b2Q6Q29tbWl0VXBsb2FkSW5uZXJcIixcInZvZDpHZXRVcGxvYWRDYW5kaWRhdGVzXCIsXCJJbWFnZVg6QXBwbHlJbWFnZVVwbG9hZFwiLFwiSW1hZ2VYOkNvbW1pdEltYWdlVXBsb2FkXCIsXCJJbWFnZVg6QXBwbHlVcGxvYWRJbWFnZUZpbGVcIixcIkltYWdlWDpDb21taXRVcGxvYWRJbWFnZUZpbGVcIl0sXCJSZXNvdXJjZVwiOltcIipcIl0sXCJDb25kaXRpb25cIjpcIntcXFwiQXBwSWRcXFwiOlxcXCIzNzA0XFxcIixcXFwiUFNNXFxcIjpcXFwiZmFjZXUuZWRpdC5hcGlcXFwiLFxcXCJVc2VySWRcXFwiOlxcXCIwXFxcIn1cIn1dfSIsIlNpZ25hdHVyZSI6Ijk3ZmJhY2E1YWFkMjA0NTFlMDc4ZWQ0NzJiMzhiZDk3MzkyMmQyZTIxNTdmZmQzZjg2NzBjNzNkNTlmOWI3NjEifQ==",
            # "x-tt-trace-id": "00-b17a72190de41660050c0f4088100e78-b17a72190de4166001",
            # "x-neptune": "-8|50:51:59:00:09:20:21:30:40:47:49:nf-4:31:39:22:29"
        }
        url = "https://vod.bytedanceapi.com/top/v1"
        params = {
            "Action": "ApplyUploadInner",
            "SpaceName": "lv_pc_text_recognize_cn",
            "UseQuic": "false",
            "Version": "2020-11-19",
            "device_platform": "win"
        }
        response = requests.get(url, headers=headers, params=params)

        json_data = response.json()
        return json_data


if __name__ == '__main__':
    v1_api = V1Api()
    data = v1_api.get_v1()
    print(data)
